package com.chinasofti.polymorphic.demo02.demo01;

public class Fu {
    public void show(){
        System.out.println("Fu");
    }
}

class Zi1 extends Fu {
    public void show(){
        System.out.println("Zi1");
    }
}
class Zi2 extends Fu {
    public void show(){
        System.out.println("Zi2");
    }
}
class Test01{
    public static void t1(Fu fu){

    }

    public static void main(String[] args) {
        Fu f = new Fu();
        Fu f1 = new Zi1();
        Fu f2 = new Zi2();
        Zi1 zi = new Zi1();
        t1(zi);
        t1(f);
        t1(f1);
        t1(f2);
    }
}